package _spring_test._tests;

import _spring_test.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: huangya
 * @Date: 2019/8/19
 * @Description:
 */
public class ReplacedMethodTest {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("application-replaced-method.xml");
        User user4 = (User) ac.getBean("user4");
        System.out.println(user4.getUserId());
    }

}
